<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center kefu_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub kefu_fd0_0'>
					<view class='flex flex-wrap align-center kefu_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">
						<text class='fu-iconfont2  kefu_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='kefu_fd0_0_c1_c0'>联系客服</text>
					</view>
					<view class='flex flex-wrap align-center justify-end kefu_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction align-stretch benben-flex-layout kefu_flex_1">
				<image class='kefu_fd1_0' mode="aspectFit" src='https://paiaifalv.oss-cn-beijing.aliyuncs.com/images/41.png'></image>
				<text class='kefu_fd1_1' v-if="configdetail.is_show_tel==1">{{configdetail.tel}}</text>
				<view class='flex align-center justify-center kefu_fd1_2'>
					<text>工作时间：</text>
					<text>{{configdetail.time}}</text>
				</view>
				<view class='flex flex-wrap align-center kefu_fd1_3'>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center benben-flex-layout">
				<view class='flex flex-wrap align-center justify-center kefu_fd2_0' v-if="configdetail.is_show_tel==1">
					<text class='kefu_fd2_0_c0' @tap.stop="callMobile(phonenumber)">拨打电话</text>
				</view>
				<view class='flex flex-wrap align-center justify-center kefu_fd2_1'>
					<button open-type="contact">在线联系客服</button>
					<!-- <text class='kefu_fd2_1_c0'>在线联系客服</text> -->
				</view>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"phonenumber": "",
				configdetail:"",//
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.post64534cbb2c352();
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			post64534cbb2c352(){
				this.$api.post(global.apiUrls.post64534cbb2c352, {
					
				}).then(res => {
					if (res.data.code == 1) {
						this.configdetail = res.data.data;
					}
				})
			},
			
			//拨打电话
			callMobile(){
				uni.makePhoneCall({
					phoneNumber:this.configdetail.tel
				})
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #eee;
		background-size: 100% auto;
	}

	.kefu_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.kefu_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 700;
		color: #333;
		line-height: 88rpx;
	}

	.kefu_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.kefu_fd0_0_c0 {
		width: 120rpx;
	}

	.kefu_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.kefu_flex_1 {
		background: #fff;
		padding: 100rpx 0rpx 0rpx 0rpx;
		width: 100%;
		height: 750rpx;
		background-size: 100% auto;
	}

	.kefu_fd1_3 {
		margin: 0rpx 0rpx 0rpx 0rpx;
	}

	.kefu_fd1_2 {
		margin: 0rpx 0rpx 56rpx 0rpx;
		color: var(--benbenFontColor2);
		font-size: 28rpx;
	}

	.kefu_fd1_1 {
		margin: 0rpx auto 22rpx auto;
		color: var(--benbenFontColor0);
		font-size: 48rpx;
		font-weight: 600;
	}

	.kefu_fd1_0 {
		width: 750rpx;
		height: 500rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx auto 60rpx auto;
	}

	.kefu_fd2_1_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
	}

	.kefu_fd2_1 {
		background: #FFFFFF;
		border-radius: 8rpx;
		width: 710rpx;
		height: 98rpx;
		margin: 30rpx 0rpx 0rpx 0rpx;
	}

	.kefu_fd2_0_c0 {
		color: #FFFFFF;
		font-size: 32rpx;
		font-weight: 400;
	}

	.kefu_fd2_0 {
		background: #26BF01;
		border-radius: 8rpx;
		width: 710rpx;
		height: 98rpx;
		margin: 64rpx 0rpx 0rpx 0rpx;
	}
</style>